package eraserhead.controller;

import client.ServerAccess;

/**
 * This code is get from the When2Meet Source Code, 
 * Class offers an abstraction to the way the server is connected.
 * Assumes that the client shall only connect to a single server.
 */
public class ServerAccessManager {
	static ServerAccess access;
	
	/**
	 * Sets the {@link ServerAccess}
	 * @param sa {@link ServerAccess} to set
	 */
	public static void setAccess (ServerAccess sa) {
		access = sa;
	}
	
	/**
	 * Gets the {@link ServerAccess}
	 * @return Client-wide {@link ServerAccess}
	 */
	public static ServerAccess getAccess() {
		return access;
	}
}
